package me.zhengjie.modules.system.repository
import me.zhengjie.modules.system.domain.Province
import org.springframework.data.jpa.repository.JpaRepository
import org.springframework.data.jpa.repository.JpaSpecificationExecutor
import org.springframework.data.jpa.repository.Query

/**
 * @author kuki
 * @date 2022-07-21
 */
interface ProvinceRepository : JpaRepository<Province?, Int?>, JpaSpecificationExecutor<Province?> {
    @get:Query(value = "select * from sys_province", nativeQuery = true)
    val provincesAll: List<Province?>?
}